#include<bits/stdc++.h>
#define MAX 1000010
using namespace std;
int T,n,m,K,a[MAX],c[MAX];
int main(){
    freopen("arena.in","r",stdin);
    freopen("arena.out","w",stdout);
    scanf("%d",&T);
    while(scanf("%d %d",&n,&m)){
        for(int i=0;i<n;i++){
            scanf("%d",&a[i]);
        }
        for(int i=0;i<m;i++){
            scanf("%d",&c[i]);
        }
    }
    fclose(stdin);
    fclose(stdout);
    return 0;
}
